const TOKEN_KEY = "itcast_geek_pc";
const addToken = () => localStorage.getItem(TOKEN_KEY);
const setTokenLocal = (token) => localStorage.setItem(TOKEN_KEY, token);
const removeToken = () => localStorage.removeItem(TOKEN_KEY);
// 是否已登录
const isAuth = () => !!addToken();
export { isAuth, addToken, setTokenLocal, removeToken };
